package com.meichis.yndms.model;


import androidx.annotation.NonNull;
import androidx.room.Entity;

import com.meichis.mcsappframework.entity.Attachment;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Entity(primaryKeys = {"VisitGUID", "ProcessCode", "WorkTime"})
public class VisitWorkItem implements Serializable {

    // 拜访工作项目ID
    private int WorkItemID = 0;
    // 拜访环节ID
    @NonNull
    private String ProcessCode = "";
    //拜访环节名称
    private String ProcessName = "";
    // 工作时间
    @NonNull
    private String WorkTime = "1900-01-01";
    //最后一次保存动作
    private String EndTime = "1900-01-01";
    // 上传时间
    private String InsertTime = "1900-01-01";
    //进店离店
    private VisitWorkItem_JD JD;
    @NonNull
    private String VisitGUID = "";
    //陈列检查
    private List<VisitWorkItem_DisplayCheck> DisplayChecks = new ArrayList<>();
    //设备巡检
    private List<VisitWorkItem_EQ> EQs = new ArrayList<>();
    //门店库存盘点
    private VisitWorkItem_InventoryCheck InventoryCheck = new VisitWorkItem_InventoryCheck();
    //促销活动反馈
    private List<VisitWorkItem_Promotion> Promotions = new ArrayList<>();
    //门店问题反馈
    private VisitWorkItem_IssueLog IssueLog = new VisitWorkItem_IssueLog();
    //检查反馈
    private List<InspectResult> InspectResults = new ArrayList<>();
    //照片附件
    private List<Attachment> Atts = new ArrayList<>();
    //备注
    private String Remark = "";

    public int getWorkItemID() {
        return WorkItemID;
    }

    public void setWorkItemID(int workItemID) {
        WorkItemID = workItemID;
    }

    public String getProcessCode() {
        return ProcessCode;
    }

    public void setProcessCode(String processCode) {
        ProcessCode = processCode;
    }

    public String getProcessName() {
        return ProcessName;
    }

    public void setProcessName(String processName) {
        ProcessName = processName;
    }

    public String getWorkTime() {
        return WorkTime;
    }

    public void setWorkTime(String workTime) {
        WorkTime = workTime;
    }

    public String getEndTime() {
        return EndTime;
    }

    public void setEndTime(String endTime) {
        EndTime = endTime;
    }

    public String getInsertTime() {
        return InsertTime;
    }

    public void setInsertTime(String insertTime) {
        InsertTime = insertTime;
    }

    public VisitWorkItem_JD getJD() {
        return JD;
    }

    public void setJD(VisitWorkItem_JD JD) {
        this.JD = JD;
    }

    public String getVisitGUID() {
        return VisitGUID;
    }

    public void setVisitGUID(String visitGUID) {
        VisitGUID = visitGUID;
    }

    public List<VisitWorkItem_DisplayCheck> getDisplayChecks() {
        return DisplayChecks;
    }

    public void setDisplayChecks(List<VisitWorkItem_DisplayCheck> displayChecks) {
        DisplayChecks = displayChecks;
    }

    public List<VisitWorkItem_EQ> getEQs() {
        return EQs;
    }

    public void setEQs(List<VisitWorkItem_EQ> EQs) {
        this.EQs = EQs;
    }

    public VisitWorkItem_InventoryCheck getInventoryCheck() {
        return InventoryCheck;
    }

    public void setInventoryCheck(VisitWorkItem_InventoryCheck inventoryCheck) {
        InventoryCheck = inventoryCheck;
    }

    public List<VisitWorkItem_Promotion> getPromotions() {
        return Promotions;
    }

    public void setPromotions(List<VisitWorkItem_Promotion> promotions) {
        Promotions = promotions;
    }

    public VisitWorkItem_IssueLog getIssueLog() {
        return IssueLog;
    }

    public void setIssueLog(VisitWorkItem_IssueLog issueLog) {
        IssueLog = issueLog;
    }

    public List<InspectResult> getInspectResults() {
        return InspectResults;
    }

    public void setInspectResults(List<InspectResult> inspectResults) {
        InspectResults = inspectResults;
    }

    public List<Attachment> getAtts() {
        return Atts;
    }

    public void setAtts(List<Attachment> atts) {
        Atts = atts;
    }

    public String getRemark() {
        return Remark;
    }

    public void setRemark(String remark) {
        Remark = remark;
    }
}
